
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title><?php echo $title;?></title>
    <!-- 设置缩放 -->
    <meta name="viewport" content="minimal-ui,width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
    <!-- IOS中禁用将数字识别为电话号码/忽略Android平台中对邮箱地址的识别 -->
    <meta name="format-detection" content="telephone=no" />
    <!-- windows phone 点击无高光 -->
    <meta name="msapplication-tap-highlight" content="no" />
    <!-- icon -->
    <link rel="shortcut icon" href="<?php echo ADMIN_ICO_PIC;?>" type="image/x-icon"/>
    <!-- css -->
    <link rel="stylesheet" type="text/css" href="<?php echo SYS_LINK;?>admin/css/content.css?v=<?php echo V_CSSJS;?>" />

    <style>

    </style>
</head>
<?php
$fid = isset($fid) ? $fid : '';
?>
<body>
    <!--<div class="crumb_box">菜单管理 > 菜单列表</div><div class="crumb_bottom"></div>-->
    <div class="con_box">

        <table class="table_th_td" style="max-width: 1000px;min-width: 800px;">
            <tr class="weight400">
                <th width="50">排序</th>
                <th width="60">ID</th>
                <th>菜单名称</th>
                <th width="100">所属分类</th>
                <th width="80">类型</th>
                <th width="80">状态</th>
                <th width="80">操作</th>
            </tr>
            <?php
            foreach($classlist as $v){
                $id = $v['id'];
                $viewseq = $v['viewseq'];
                $menuname = $v['menuname'];
                $mouldname = $v['mouldname'] ? $v['mouldname'] : $v['mould_code'];;
                $showtypetxt = $v['showtypetxt'];
                $statustxt = $v['statustxt'];
                $navtype = $v['navtype'];
                $level = $v['level']*2;
                $str = str_pad("",$level, '-',STR_PAD_LEFT );
                $fontb = $v['fid'] == $fid ? 'fontb' : '';
                $statusC = $v['status'] == 2 ? 'statusClose' : ($v['status'] == 3 ? 'statusHide' : '');
                $btnHtml = '&nbsp;';
                if($v['spaceflag'] == '1'){
                    $btnHtml = '<a href="'.$v['seturl'].'" data-url="'.$v['seturl'].'" class="btn_base btn_line_none" >查看</a>';
                }
                echo <<<html
            <tr>
                <td class="center"><input type="text" class="viewseq" data-id="$id" value="$viewseq"></td>
                <td class="center">$id</td>
                <td class="$fontb" >$str $menuname</td>
                <td class="center">$mouldname</td>
                <td class="center">$showtypetxt</td>
                <td class="center $statusC">$statustxt</td>
                <td class="center">
                    $btnHtml
                </td>
            </tr>
html;
            }
            ?>
            <tr class="operates_box">
                <td class="center" >
                    <button class="btn_base btn_height20 btn_line_none" id="viewseq_btn" title="提交排序"
                    data-url="<?php echo SYS_URL_PATH('admin_menu_seq');?>">↓↑</button>
                </td>
                <td colspan="6"></td>
            </tr>
        </table>
    </div>
</body>
<script language="javascript">
    var cssjsv = '<?php echo V_CSSJS;?>';
    var http_url = '<?php echo SYS_HOST;?>';
    var http_link = '<?php echo SYS_LINK;?>';
    var http_fix = '<?php echo SYS_URL_FIX;?>';
</script>
<script type="text/javascript" src="<?php echo SYS_LINK;?>admin/js/jquery.min.js?v=<?php echo V_CSSJS;?>"></script>
<script type="text/javascript" src="<?php echo SYS_LINK;?>admin/js/skin.js?v=<?php echo V_CSSJS;?>"></script>
<script type="text/javascript" src="<?php echo SYS_LINK;?>admin/js/common.js?v=<?php echo V_CSSJS;?>"></script>
<script type="text/javascript">file_load('list');</script>
<script language="javascript">
    // 页面加载后
    window.onload = function () {

    }

    //内容
    /*$('.btn_info').click(function(){
        let goutoURL = $(this).attr('data-url');
        if(!goutoURL){
            layer.msg('网络异常');
        }else{
            layerIframe(goutoURL, '96%', '96%', 1);
        }
    });*/

</script>
</html>